cygpath

Contents|Index|Previous|Next
``

`cygpath`

###### USAGE

>     cygpath [-p|--path] (-u|--unix)|(-w|--windows) filename

>     cygpath [-v|--version]

###### DESCRIPTION

The `cygpath` program is a utility that converts Windows native filenames to Cygwin POSIX-style pathnames and back. It can be used when a Cygwin program needs to pass a `filename` to a native windows program, or when it expects to get a `filename` from a native windows program. You may use the long or short option names interchangeably, even though only the short ones are described.
The `-u` and `-w` options indicate whether you want a conversion from windows to Unix (POSIX) format (`-u`) or a conversion from Unix (POSIX) to Windows format (`-w`). You must give exactly one of these. To give neither or both is an error.
The `-p` option means that you want to convert a path-style string rather than a single filename. For example, the `PATH` environment variable is semicolon-delimited in Windows, but colon-delimited in Unix. By giving `-p` you are instructing `cygpath` to convert between these formats. Consider the following example’s usage.

>     #!/bin/sh

>     for i in `echo *.exe | sed 's/\.exe/cc/'`

>     do

>         notepad `cygpath -w $i`

>     done

Top|Contents|Index|Previous|Next